package com.etc.dao;

import com.etc.entity.Doctor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorMapper {

    /**
     * 查询医生所有信息
     * @param doctor
     * @return
     */
    List<Doctor> findAllSelective(Doctor doctor);

    /**
     * 查询医生信息
     * @param doctor
     * @return
     */
    List<Doctor> findSelective(Doctor doctor);

    /**
     * 添加医生
     * @param doctor
     * @return
     */
    int insertSelective(Doctor doctor);

    /**
     * 根据Id更新医生
     * @param doctor
     * @return
     */
    int updateSelectiveById(Doctor doctor);

    /**
     * 根据部门ID查找医生
     * @param deptId
     * @return
     */
    List<Doctor> findDoctorByDeptId(Integer deptId);

}
